home *** CD-ROM | disk | FTP | other *** search
- package com.sun.xml.parser;
-
- import org.xml.sax.SAXException;
-
- class ValidatingParser$ChildrenValidator extends ElementValidator {
- // $FF: synthetic field
- private final ValidatingParser this$0;
- private ContentModelState state;
- private String name;
-
- ValidatingParser$ChildrenValidator(ValidatingParser var1, ElementDecl var2) {
- this.this$0 = var1;
- this.state = new ContentModelState(var2.model);
- this.name = var2.name;
- }
-
- public void consume(String var1) throws SAXException {
- if (this.state == null) {
- this.this$0.error("V-035", new Object[]{this.name, var1});
- } else {
- try {
- this.state = this.state.advance(var1);
- } catch (EndOfInputException var2) {
- this.this$0.error("V-036", new Object[]{this.name, var1});
- }
- }
-
- }
-
- public void done() throws SAXException {
- if (this.state != null && !this.state.terminate()) {
- this.this$0.error("V-038", new Object[]{this.name});
- }
-
- }
-
- public void text() throws SAXException {
- this.this$0.error("V-037", new Object[]{this.name});
- }
- }
-